package com.aliyun.messagemgt.dto.query;


import com.aliyun.messagemgt.common.dto.base.PageQuery;
import lombok.ToString;

import java.util.List;

/**
 * Created with IDEA
 *
 * @author:zhangxingxing 0027012120
 * @date:2019/3/16
 * @time:15:38
 */
@ToString
public class OperateLogQuery extends PageQuery {

    /**
     * 操作日志开始时间
     */
    private String timeStart;

    /**
     * 操作日志结束时间
     */
    private String timeEnd;

    /**
     * 操作用户名称
     */
    private String operateUserName;

    /**
     * 操作资源名称
     */
    private String operateResourceName;

    /**
     * 操作用户名称或资源名称
     */
    private String userOrResourceName;

    /**
     * 主键id数组
     */
    private List<String> operateIds;

    /**
     * 升降序
     */
    private String ascOrDesc;


    /**
     * 筛选部门
     */
    private List<String> operateDepts;

    /**
     * 筛选操作类目
     */
    private List<Integer> resourceTypes;

    /**
     * 区分哪个模块 1 - 表示智推 2 -  表示消息中心
     */
    private List<Integer> modules;

    public String getTimeStart() {
        return timeStart;
    }

    public OperateLogQuery setTimeStart(String timeStart) {
        this.timeStart = timeStart;
        return this;
    }

    public String getTimeEnd() {
        return timeEnd;
    }

    public OperateLogQuery setTimeEnd(String timeEnd) {
        this.timeEnd = timeEnd;
        return this;
    }

    public String getOperateUserName() {
        return operateUserName;
    }

    public OperateLogQuery setOperateUserName(String operateUserName) {
        this.operateUserName = operateUserName;
        return this;
    }

    public String getOperateResourceName() {
        return operateResourceName;
    }

    public OperateLogQuery setOperateResourceName(String operateResourceName) {
        this.operateResourceName = operateResourceName;
        return this;
    }

    public OperateLogQuery setUserOrResourceName(String userOrResourceName) {
        this.userOrResourceName = userOrResourceName;
        return this;
    }


    public List<String> getOperateDepts() {
        return operateDepts;
    }

    public OperateLogQuery setOperateDepts(List<String> operateDepts) {
        this.operateDepts = operateDepts;
        return this;
    }

    public List<String> getOperateIds() {
		return operateIds;
	}

	public void setOperateIds(List<String> operateIds) {
		this.operateIds = operateIds;
	}

	public String getAscOrDesc() {
        return ascOrDesc;
    }

    public void setAscOrDesc(String ascOrDesc) {
        this.ascOrDesc = ascOrDesc;
    }

    public String getUserOrResourceName() {
        return userOrResourceName;
    }

    public OperateLogQuery setserOrResourceName(String userOrResourceName) {
        this.userOrResourceName = userOrResourceName;
        return this;
    }

    public List<Integer> getResourceTypes() {
        return resourceTypes;
    }

    public OperateLogQuery setResourceTypes(List<Integer> resourceTypes) {
        this.resourceTypes = resourceTypes;
        return this;
    }

    public List<Integer> getModules() {
        return modules;
    }

    public OperateLogQuery setModules(List<Integer> modules) {
        this.modules = modules;
        return this;
    }
}
